<!doctype html>
<html>
<head>
    <title>Angular2 JSPM Setup</title>
    <script src="jspm_packages/system.js"></script>
    <script src="jspm.config.js"></script>
</head>
<body>

    <!-- our angular2 component -->
    <app>Loading...</app>

    <!-- import and run our app -->
    <script>
        var readyForMainLoad;
        if (location.origin.match(/localhost/)) {
            System.trace = true;
            readyForMainLoad = System.import('systemjs-hot-reloader').then(function (HotReloader) {
                var hotReloader = new HotReloader.default('http://localhost:9089');
            });
        }
        Promise.resolve(readyForMainLoad).then(function () {
            System.import("./src").then(function () {
                console.log("Application is running")
            });
        });
    </script>
</body>
</html>
